<html>
    <head>
        <script src="js/snowstorm/snowstorm-min.js"></script>
        <title>Fahion shop</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <link href="css/style.css" type="text/css" rel="stylesheet"/>
        <link href="css/km.css" type="text/css" rel="stylesheet"/>
    </head>
    <body >
        <div id="wrapper">
            <?php include 'template/header.php' ?>
            <div id="main">

                <?php
                include 'Connect_db.php';
                if(isset($_SESSION['cus'])){
                    $cus_id = $_SESSION['cus']['cus_id'];
                $km = GetkmbyCus($cus_id);}else{
                    $km = km();
                }
                foreach ($km as $key => $value) {
                    ?>
                    <div id="content">


                        <div id="image">
                            <img src="public/templates/admin/<?php echo $value['image']; ?>">
                        </div>
                        <div id="content-detail">
                            <ul>
                                <li> <font color="#E80284";align="center"; size="20"><?php echo $value['name_promo']; ?></font> 
                                <li> <font color="blue";>Chương trình khuyến mãi từ ngày:</font> &nbsp;<?php echo $value['date_start']; ?>

                                </li>
                                <li>
                                    <font color="blue";>thời hạn kết thúc đến: </font>&nbsp;<?php echo $value['date_finish']; ?>
                                </li>
                                <li>
                                    <font color="blue";>Khuyến mãi lên tới :</font>&nbsp;<?php echo $value['promo_number']; ?>
                                </li>
                                <li>
                                    <font color="blue";>Chương trình áp dụng cho.</font><?php echo $value['project']; ?>
                                </li>
                            </ul>
                        </div>

                    </div>
                <?php } ?>
            </div>

            <?php include 'template/footer.php' ?>

        </div>
    </body>
</html>